package view;

import javax.swing.JPanel;
import java.awt.Frame;
import javax.swing.JDialog;
import javax.swing.JLabel;
import java.awt.Rectangle;
import javax.swing.JTextField;
import javax.swing.JButton;

public class AnlegenKundeDlg extends JDialog {

	private static final long serialVersionUID = 1L;
	private JPanel jContentPane = null;
	private JLabel jLabel = null;
	private JLabel jLabel1 = null;
	private JTextField tfName = null;
	private JTextField tfNummer = null;
	private JButton btAnlegen = null;
	private JButton btEnde = null;
	/**
	 * @param owner
	 * @param b 
	 */
	public AnlegenKundeDlg(Frame owner, boolean b) {
		super(owner);
		initialize();
		setVisible(b);
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(367, 202);
		this.setTitle("Bank-Anwendung - Kunde anlegen");
		this.setContentPane(getJContentPane());
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private JPanel getJContentPane() {
		if (jContentPane == null) {
			jLabel1 = new JLabel();
			jLabel1.setBounds(new Rectangle(32, 60, 122, 16));
			jLabel1.setText("Kundenname");
			jLabel = new JLabel();
			jLabel.setBounds(new Rectangle(31, 29, 120, 16));
			jLabel.setText("Kundennummer");
			jContentPane = new JPanel();
			jContentPane.setLayout(null);
			jContentPane.add(jLabel, null);
			jContentPane.add(jLabel1, null);
			jContentPane.add(getTfName(), null);
			jContentPane.add(getTfNummer(), null);
			jContentPane.add(getBtAnlegen(), null);
			jContentPane.add(getBtEnde(), null);
		}
		return jContentPane;
	}

	/**
	 * This method initializes tfName	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	public JTextField getTfName() {
		if (tfName == null) {
			tfName = new JTextField();
			tfName.setBounds(new Rectangle(165, 59, 165, 17));
		}
		return tfName;
	}

	/**
	 * This method initializes tfNummer	
	 * 	
	 * @return javax.swing.JTextField	
	 */
	public JTextField getTfNummer() {
		if (tfNummer == null) {
			tfNummer = new JTextField();
			tfNummer.setBounds(new Rectangle(165, 29, 164, 18));
		}
		return tfNummer;
	}

	/**
	 * This method initializes btAnlegen	
	 * 	
	 * @return javax.swing.JButton	
	 */
	public JButton getBtAnlegen() {
		if (btAnlegen == null) {
			btAnlegen = new JButton();
			btAnlegen.setBounds(new Rectangle(32, 105, 132, 33));
			btAnlegen.setText("Anlegen");
		}
		return btAnlegen;
	}

	/**
	 * This method initializes btEnde	
	 * 	
	 * @return javax.swing.JButton	
	 */
	public JButton getBtEnde() {
		if (btEnde == null) {
			btEnde = new JButton();
			btEnde.setBounds(new Rectangle(195, 105, 132, 32));
			btEnde.setText("Beenden");
		}
		return btEnde;
	}

}  //  @jve:decl-index=0:visual-constraint="308,89"
